package com.litong.rms.dao;

import java.util.List;

public interface BaseDao {
	/*保存实体*/
	public <T> void save(T entity);
	/*查找实体*/
	public <T> List<T> find(String queryString,Object[] values);
	
	public <T> List<T> find(String queryString,Object value);
	
	/*更新实体*/
	public <T> void saveOrUpdate(T entity);
	/*删除实体*/
	public <T> void delete(T entity);
	/*获取实体列表*/
	public <T> List<T> getEntityList(String queryString);
	
	/**
	 * 执行SQL
	 * @param queryString
	 */
	public void executeBySQL(final String queryString);
	

}
